/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AnalysistImpl;

import AnalysistInterface.IAnalysist;
import DTO.DrawDTO;
import DTO.SensorDTO;
import DTO.PacketDTO;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class BaseAnalysist implements IAnalysist {

    private String analysistSign;

    @Override
    public DrawDTO analysis(String location,PacketDTO _packet) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public DrawDTO analysis(String location,PacketDTO _packet, Date fromDate, Date toDate) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean isMatchSign(SensorDTO i) {
        return i.getSensorSign().equalsIgnoreCase(this.analysistSign);
    }

    @Override
    public String getAnalysistSign() {
        return analysistSign;
    }

    public void setAnalysistSign(String analysistSign) {
        this.analysistSign = analysistSign;
    }


  }
